//
//  ChoiceBankInfoView.m
//  wangzhe
//
//  Created by 李 佳伟 on 2017/11/15.
//  Copyright © 2017年 李 佳伟. All rights reserved.
//

#import "ChoiceBankInfoView.h"

#import "JTCSM.h"

static CGFloat imagesize = 20;
@interface ChoiceBankInfoView ()
{
    UILabel *titleLabel;
    UILabel *contentLabel;
}

@end

@implementation ChoiceBankInfoView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        titleLabel = [UILabel initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height/2) text:@"" font:16 textAlignment:NSTextAlignmentLeft texcolor:RGBACOLOR(133, 133, 133, 1) backgroundColor:nil];
        [self addSubview:titleLabel];
        
        contentLabel = [UILabel initWithFrame:CGRectMake(0, frame.size.height/2, frame.size.width, frame.size.height/2) text:@"" font:16 textAlignment:NSTextAlignmentLeft texcolor:RGBACOLOR(133, 133, 133, 1) backgroundColor:nil];
        [self addSubview:contentLabel];
        
        UIImageView *footerView = [[UIImageView alloc]initWithFrame:CGRectMake(frame.size.width-imagesize, (frame.size.height-imagesize)/2, imagesize, imagesize)];
        footerView.image = [UIImage imageNamed:@"myFanhui.png"];
        [self addSubview:footerView];
        
    }
    
    return self;
}

- (void)setTitle:(NSString *)title content:(NSString *)content{
    titleLabel.text = title;
    contentLabel.text = content;
}
@end
